package cn.com.generaldata.os.pojo;

import java.util.Date;

import com.sun.xml.internal.bind.CycleRecoverable;

public class ReportMarking implements java.io.Serializable, CycleRecoverable {

	private static final long serialVersionUID = 8977820544508401743L;

	private String id; // 报表标记ID
	private User operator; // 操作人
	private Report report; // 报表信息
	private short reportStatus; // 报表状态
	private Date markingDate; // 标记时间
	private String markingContent; // 标记内容

	public ReportMarking() {
	}

	public ReportMarking(String id, User operator, Report report, short reportStatus, Date markingDate,
			String markingContent) {
		this.id = id;
		this.operator = operator;
		this.report = report;
		this.reportStatus = reportStatus;
		this.markingDate = markingDate;
		this.markingContent = markingContent;
	}

	/**
	 * 解决CXF循环引用问题.
	 * 
	 * @param arg0
	 * @return
	 */
	@Override
	public Object onCycleDetected(Context arg0) {
		ReportMarking temp = new ReportMarking();
		temp.setId(id);
		return temp;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public User getOperator() {
		return operator;
	}

	public void setOperator(User operator) {
		this.operator = operator;
	}

	public Report getReport() {
		return report;
	}

	public void setReport(Report report) {
		this.report = report;
	}

	public short getReportStatus() {
		return reportStatus;
	}

	public void setReportStatus(short reportStatus) {
		this.reportStatus = reportStatus;
	}

	public Date getMarkingDate() {
		return markingDate;
	}

	public void setMarkingDate(Date markingDate) {
		this.markingDate = markingDate;
	}

	public String getMarkingContent() {
		return markingContent;
	}

	public void setMarkingContent(String markingContent) {
		this.markingContent = markingContent;
	}

}
